import service from "../../utils/request";
//考勤组
export function kqz(params){
    return service.get('/api/attendanceGroup', {params} )
}
export function kfzDelete(payload={}){
    return service.delete('/api/attendanceGroup/'+payload.id  )
}
export function kfzAdd(data){
    return service.post('/api/attendanceGroup',data  )
}
export function kfzUpdate(payload = {}){
    var {id,...data} = payload;
    return service.patch('/api/attendanceGroup/'+id,  data )
}

//班次
export function bcdata(params){
    return service.get('/api/workforce', {params} )
}
export function bcDelete(payload={}){
    return service.delete('/api/workforce/'+payload.id  )
}

export function bcAdd(data){
    return service.post('/api/workforce',data  )
}
export function bcUpdate(payload = {}){
    var {id,...data} = payload;
    return service.patch('/api/workforce/'+id,  data )
}